gamePromise

  • property

{Promise<Game>}

 

Provides a Game instance with all the stats for the game and all the player information!

Promise<bitballs/models/game>

Given a valid gameId, the game promise.

undefined

Given an invalid gameId, the game promise.

var gameDetailsVM = new GameDetailsViewModel({
  gameId: 5
});
gameDetailsVM.attr("gamePromise").then(function(game){
  game.attr("date") //-> Date
})